package com.yg.config.exceptionhandler;

import com.yg.config.result.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.dao.DuplicateKeyException;

/**
 * 所有异常都用YGException
 * clr
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class YGException extends RuntimeException {
    private Integer code;
    private String msg;
    //显示报错行数
    private Integer line;
}
